package com.chenyongjing.design.pattern.command.general;

/**
 * @Author chen
 * @Date 2022/11/19 23:38
 */
public class Invoker {
    private ICommand cmd;

    public Invoker(ICommand cmd) {
        this.cmd = cmd;
    }

    public void action(){
        cmd.execute();
    }
}
